"use strict";
const mongoose = require("mongoose");
let schema = null;
const createSchema = function() {
	const suitePrototype = {
		_id: String,
		suiteKey: String, //套件的key，唯一标记一个套件
		suiteTicket: String, //推送过来的ticket,
		vendorKey: String //供应商的id
	};
	schema = new mongoose.Schema(suitePrototype);
};
const createIndex = function() {
	schema.index({
		suiteKey: 1,
		unique: true
	});
};
createSchema();
createIndex();
mongoose.model("Suite", schema);